package com.monster.starter.security.common;

import com.monster.exception.ExceptionEnum;
import lombok.Getter;

/**
 * 异常定义
 * @author kuang
 */
public enum SecurityExceptionEnum implements ExceptionEnum {
    /**
     * 异常定义
     */
    DECRYPT_ERROR ("DECRYPT_ERROR", "无法校验数据的正确"),
    SIGN_ERROR ("SIGN_ERROR", "无法校验数据的来源"),
    ;
    @Getter
    private String code;
    @Getter
    private String msg;

    SecurityExceptionEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
